import request from '@/utils/request'

// 查询临停缴费列表
export function listPayment(query) {
  return request({
    url: '/system/payment/list',
    method: 'get',
    params: query
  })
}

// 查询临停缴费详细
export function getPayment(tpId) {
  return request({
    url: '/system/payment/' + tpId,
    method: 'get'
  })
}

// 新增临停缴费
export function addPayment(data) {
  return request({
    url: '/system/payment',
    method: 'post',
    data: data
  })
}

// 修改临停缴费
export function updatePayment(data) {
  return request({
    url: '/system/payment',
    method: 'put',
    data: data
  })
}

// 删除临停缴费
export function delPayment(tpId) {
  return request({
    url: '/system/payment/' + tpId,
    method: 'delete'
  })
}
